<div class="pull-right text-right">

    <!-- <g:link class="btn btn-sm btn-success" controller="opportunity" id="${this.opportunity?.id}"
            action="complete"><i class="fa fa-check"></i> 完成</g:link> -->
            <g:if test="${currentWorkflowInstance}">
            <g:link class="btn btn-info" controller="workflowInstance" id="${currentWorkflowInstance?.id}"
                    action="reject"><i class="fa fa-arrow-up"></i> 上一步</g:link>
            <g:link class="btn btn-info" controller="workflowInstance" id="${currentWorkflowInstance?.id}"
                    action="approve"><i class="fa fa-arrow-down"></i> 下一步</g:link>
            <g:link class="btn btn-danger" controller="workflowInstance" id="${currentWorkflowInstance?.id}"
                            action="cancel"><i class="fa fa-exclamation-circle"></i> 失败</g:link>
            <g:link class="btn btn-success" controller="workflowInstance" id="${currentWorkflowInstance?.id}"
                    action="complete"><i class="fa fa-check"></i> 完成</g:link>
          </g:if>
        <g:else>
        <g:link class="btn btn-info" controller="workflowInstance"
                params="[opportunity: this.opportunity?.id]"
                action="index"></i>查看工作流</g:link>
        <g:link class="btn btn-info" controller="workflowInstance"
                params="[opportunity: this.opportunity?.id]"
                action="create"><i class="fa fa-plus"></i>新增工作流</g:link>
      </g:else>
    <g:if test="${this.canSpecialApproval}">
        <g:link class="btn btn-sm btn-success" controller="opportunity" id="${this.opportunity?.id}"
                action="specialApprove"><i class="fa fa-check"></i> 特批</g:link>
    </g:if>

</div>
